

import request from './http.js'

//  用户登录
export function UserLogin(data){ 
	return request({
		url: '/auth/login',
		method: 'POST',
		contentType:'application/json',
		data: data
	})
}

//  获取公钥
export function getPublicKey(data){ 
	return request({
		url: '/public/getPublicKey',
		method: 'get',
		contentType:'application/json',
		data: data
	})
}

//  获取短信验证码
export function sendUserCode(data){ 
	return request({
		url: '/auth/user/sendUserCode',
		method: 'get',
		contentType:'application/json',
		data: data
	})
}


//  获取协议内容
export function getAgreement(data){ 
	return request({
		url: '/public/getAgreement',
		method: 'get',
		contentType:'application/json',
		data: data
	})
}

//  用户注册
export function postRegister(data){ 
	return request({
		url: '/auth/user/register',
		method: 'post',
		contentType:'application/json',
		data: data
	})
}


//  获取用户基本信息
export function getUserInfo(data){ 
	return request({
		url: '/personal/getUserInfo',
		method: 'get',
		contentType:'application/json',
		data: data
	})
}


//  修改密码
export function setSavePwd(data){ 
	return request({
		url: '/personal/savePwd',
		method: 'post',
		contentType:'application/json',
		data: data
	})
}

//  保存修改个人信息
export function postSave(data){ 
	return request({
		url: '/personal/save',
		method: 'post',
		contentType:'application/json',
		data: data
	})
}

//  忘记密码发送短信验证码
export function sendForgetPwdCode(data){ 
	return request({
		url: '/auth/user/sendForgetPwdCode',
		method: 'get',
		contentType:'application/json',
		data: data
	})
}

//  重置密码
export function resetPwd(data){ 
	return request({
		url: '/auth/user/resetPwd',
		method: 'post',
		contentType:'application/json',
		data: data
	})
}

//  用户退出
export function logout(data){ 
	return request({
		url: '/logout',
		method: 'POST',
		contentType:'application/json',
		data: data
	})
}

//  获取未完成的派工工序任务单
export function pageVProcedureDetailSimpleVo(data){ 
	return request({
		url: '/production/dispatch/pageVProcedureDetailSimpleVo',
		method: 'get',
		contentType:'application/json',
		data: data
	})
}

//  通过 派工工序任务明细ID 查询工序汇报记录
export function listProcedureCardDetailVoMobile(data){ 
	return request({
		url: '/erp/workProcedureCardDetail/listProcedureCardDetailVoMobile',
		method: 'get',
		contentType:'application/json',
		data: data
	})
}

//  新增工序汇报记录
export function createCardDetail(data){ 
	return request({
		url: '/erp/workProcedureCardDetail/createCardDetail',
		method: 'post',
		contentType:'application/json',
		data: data
	})
}


// （字典）
export function dictType(data){ 
	return request({
		url: '/dictType/system/page',
		method: 'get',
		contentType:'application/json',
		data: data
	})
}




















